
book-02:     file format elf64-littleaarch64


Disassembly of section .init:

00000000004005e0 <_init>:
  4005e0:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4005e4:	910003fd 	mov	x29, sp
  4005e8:	94000048 	bl	400708 <call_weak_fn>
  4005ec:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4005f0:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400600 <.plt>:
  400600:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400604:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf6a0>
  400608:	f947fe11 	ldr	x17, [x16, #4088]
  40060c:	913fe210 	add	x16, x16, #0xff8
  400610:	d61f0220 	br	x17
  400614:	d503201f 	nop
  400618:	d503201f 	nop
  40061c:	d503201f 	nop

0000000000400620 <_exit@plt>:
  400620:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  400624:	f9400211 	ldr	x17, [x16]
  400628:	91000210 	add	x16, x16, #0x0
  40062c:	d61f0220 	br	x17

0000000000400630 <exit@plt>:
  400630:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  400634:	f9400611 	ldr	x17, [x16, #8]
  400638:	91002210 	add	x16, x16, #0x8
  40063c:	d61f0220 	br	x17

0000000000400640 <perror@plt>:
  400640:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  400644:	f9400a11 	ldr	x17, [x16, #16]
  400648:	91004210 	add	x16, x16, #0x10
  40064c:	d61f0220 	br	x17

0000000000400650 <getpid@plt>:
  400650:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  400654:	f9400e11 	ldr	x17, [x16, #24]
  400658:	91006210 	add	x16, x16, #0x18
  40065c:	d61f0220 	br	x17

0000000000400660 <__libc_start_main@plt>:
  400660:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  400664:	f9401211 	ldr	x17, [x16, #32]
  400668:	91008210 	add	x16, x16, #0x20
  40066c:	d61f0220 	br	x17

0000000000400670 <vfork@plt>:
  400670:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  400674:	f9401611 	ldr	x17, [x16, #40]
  400678:	9100a210 	add	x16, x16, #0x28
  40067c:	d61f0220 	br	x17

0000000000400680 <__gmon_start__@plt>:
  400680:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  400684:	f9401a11 	ldr	x17, [x16, #48]
  400688:	9100c210 	add	x16, x16, #0x30
  40068c:	d61f0220 	br	x17

0000000000400690 <abort@plt>:
  400690:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  400694:	f9401e11 	ldr	x17, [x16, #56]
  400698:	9100e210 	add	x16, x16, #0x38
  40069c:	d61f0220 	br	x17

00000000004006a0 <puts@plt>:
  4006a0:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  4006a4:	f9402211 	ldr	x17, [x16, #64]
  4006a8:	91010210 	add	x16, x16, #0x40
  4006ac:	d61f0220 	br	x17

00000000004006b0 <printf@plt>:
  4006b0:	b0000090 	adrp	x16, 411000 <_exit@GLIBC_2.17>
  4006b4:	f9402611 	ldr	x17, [x16, #72]
  4006b8:	91012210 	add	x16, x16, #0x48
  4006bc:	d61f0220 	br	x17

Disassembly of section .text:

00000000004006c0 <_start>:
  4006c0:	d280001d 	mov	x29, #0x0                   	// #0
  4006c4:	d280001e 	mov	x30, #0x0                   	// #0
  4006c8:	aa0003e5 	mov	x5, x0
  4006cc:	f94003e1 	ldr	x1, [sp]
  4006d0:	910023e2 	add	x2, sp, #0x8
  4006d4:	910003e6 	mov	x6, sp
  4006d8:	580000c0 	ldr	x0, 4006f0 <_start+0x30>
  4006dc:	580000e3 	ldr	x3, 4006f8 <_start+0x38>
  4006e0:	58000104 	ldr	x4, 400700 <_start+0x40>
  4006e4:	97ffffdf 	bl	400660 <__libc_start_main@plt>
  4006e8:	97ffffea 	bl	400690 <abort@plt>
  4006ec:	00000000 	.inst	0x00000000 ; undefined
  4006f0:	004007bc 	.word	0x004007bc
  4006f4:	00000000 	.word	0x00000000
  4006f8:	00400870 	.word	0x00400870
  4006fc:	00000000 	.word	0x00000000
  400700:	004008f0 	.word	0x004008f0
  400704:	00000000 	.word	0x00000000

0000000000400708 <call_weak_fn>:
  400708:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf6a0>
  40070c:	f947f000 	ldr	x0, [x0, #4064]
  400710:	b4000040 	cbz	x0, 400718 <call_weak_fn+0x10>
  400714:	17ffffdb 	b	400680 <__gmon_start__@plt>
  400718:	d65f03c0 	ret
  40071c:	00000000 	.inst	0x00000000 ; undefined

0000000000400720 <deregister_tm_clones>:
  400720:	b0000080 	adrp	x0, 411000 <_exit@GLIBC_2.17>
  400724:	9101a000 	add	x0, x0, #0x68
  400728:	b0000081 	adrp	x1, 411000 <_exit@GLIBC_2.17>
  40072c:	9101a021 	add	x1, x1, #0x68
  400730:	eb00003f 	cmp	x1, x0
  400734:	540000a0 	b.eq	400748 <deregister_tm_clones+0x28>  // b.none
  400738:	90000001 	adrp	x1, 400000 <_init-0x5e0>
  40073c:	f9448821 	ldr	x1, [x1, #2320]
  400740:	b4000041 	cbz	x1, 400748 <deregister_tm_clones+0x28>
  400744:	d61f0020 	br	x1
  400748:	d65f03c0 	ret
  40074c:	d503201f 	nop

0000000000400750 <register_tm_clones>:
  400750:	b0000080 	adrp	x0, 411000 <_exit@GLIBC_2.17>
  400754:	9101a000 	add	x0, x0, #0x68
  400758:	b0000081 	adrp	x1, 411000 <_exit@GLIBC_2.17>
  40075c:	9101a021 	add	x1, x1, #0x68
  400760:	cb000021 	sub	x1, x1, x0
  400764:	9343fc21 	asr	x1, x1, #3
  400768:	8b41fc21 	add	x1, x1, x1, lsr #63
  40076c:	9341fc21 	asr	x1, x1, #1
  400770:	b40000a1 	cbz	x1, 400784 <register_tm_clones+0x34>
  400774:	90000002 	adrp	x2, 400000 <_init-0x5e0>
  400778:	f9448c42 	ldr	x2, [x2, #2328]
  40077c:	b4000042 	cbz	x2, 400784 <register_tm_clones+0x34>
  400780:	d61f0040 	br	x2
  400784:	d65f03c0 	ret

0000000000400788 <__do_global_dtors_aux>:
  400788:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40078c:	910003fd 	mov	x29, sp
  400790:	f9000bf3 	str	x19, [sp, #16]
  400794:	b0000093 	adrp	x19, 411000 <_exit@GLIBC_2.17>
  400798:	39419260 	ldrb	w0, [x19, #100]
  40079c:	35000080 	cbnz	w0, 4007ac <__do_global_dtors_aux+0x24>
  4007a0:	97ffffe0 	bl	400720 <deregister_tm_clones>
  4007a4:	52800020 	mov	w0, #0x1                   	// #1
  4007a8:	39019260 	strb	w0, [x19, #100]
  4007ac:	f9400bf3 	ldr	x19, [sp, #16]
  4007b0:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4007b4:	d65f03c0 	ret

00000000004007b8 <frame_dummy>:
  4007b8:	17ffffe6 	b	400750 <register_tm_clones>

00000000004007bc <main>:
  4007bc:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007c0:	910003fd 	mov	x29, sp
  4007c4:	52800b00 	mov	w0, #0x58                  	// #88
  4007c8:	b9001fa0 	str	w0, [x29, #28]
  4007cc:	90000000 	adrp	x0, 400000 <_init-0x5e0>
  4007d0:	91248000 	add	x0, x0, #0x920
  4007d4:	97ffffb3 	bl	4006a0 <puts@plt>
  4007d8:	97ffffa6 	bl	400670 <vfork@plt>
  4007dc:	b9001ba0 	str	w0, [x29, #24]
  4007e0:	b9401ba0 	ldr	w0, [x29, #24]
  4007e4:	7100001f 	cmp	w0, #0x0
  4007e8:	540000aa 	b.ge	4007fc <main+0x40>  // b.tcont
  4007ec:	90000000 	adrp	x0, 400000 <_init-0x5e0>
  4007f0:	9124c000 	add	x0, x0, #0x930
  4007f4:	97ffff93 	bl	400640 <perror@plt>
  4007f8:	14000010 	b	400838 <main+0x7c>
  4007fc:	b9401ba0 	ldr	w0, [x29, #24]
  400800:	7100001f 	cmp	w0, #0x0
  400804:	540001a1 	b.ne	400838 <main+0x7c>  // b.any
  400808:	b0000080 	adrp	x0, 411000 <_exit@GLIBC_2.17>
  40080c:	91018000 	add	x0, x0, #0x60
  400810:	b9400000 	ldr	w0, [x0]
  400814:	11000401 	add	w1, w0, #0x1
  400818:	b0000080 	adrp	x0, 411000 <_exit@GLIBC_2.17>
  40081c:	91018000 	add	x0, x0, #0x60
  400820:	b9000001 	str	w1, [x0]
  400824:	b9401fa0 	ldr	w0, [x29, #28]
  400828:	11000400 	add	w0, w0, #0x1
  40082c:	b9001fa0 	str	w0, [x29, #28]
  400830:	52800000 	mov	w0, #0x0                   	// #0
  400834:	97ffff7b 	bl	400620 <_exit@plt>
  400838:	97ffff86 	bl	400650 <getpid@plt>
  40083c:	2a0003e4 	mov	w4, w0
  400840:	b0000080 	adrp	x0, 411000 <_exit@GLIBC_2.17>
  400844:	91018000 	add	x0, x0, #0x60
  400848:	b9400001 	ldr	w1, [x0]
  40084c:	90000000 	adrp	x0, 400000 <_init-0x5e0>
  400850:	91250000 	add	x0, x0, #0x940
  400854:	b9401fa3 	ldr	w3, [x29, #28]
  400858:	2a0103e2 	mov	w2, w1
  40085c:	2a0403e1 	mov	w1, w4
  400860:	97ffff94 	bl	4006b0 <printf@plt>
  400864:	52800000 	mov	w0, #0x0                   	// #0
  400868:	97ffff72 	bl	400630 <exit@plt>
  40086c:	00000000 	.inst	0x00000000 ; undefined

0000000000400870 <__libc_csu_init>:
  400870:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400874:	910003fd 	mov	x29, sp
  400878:	a901d7f4 	stp	x20, x21, [sp, #24]
  40087c:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf6a0>
  400880:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf6a0>
  400884:	91374294 	add	x20, x20, #0xdd0
  400888:	913722b5 	add	x21, x21, #0xdc8
  40088c:	a902dff6 	stp	x22, x23, [sp, #40]
  400890:	cb150294 	sub	x20, x20, x21
  400894:	f9001ff8 	str	x24, [sp, #56]
  400898:	2a0003f6 	mov	w22, w0
  40089c:	aa0103f7 	mov	x23, x1
  4008a0:	9343fe94 	asr	x20, x20, #3
  4008a4:	aa0203f8 	mov	x24, x2
  4008a8:	97ffff4e 	bl	4005e0 <_init>
  4008ac:	b4000194 	cbz	x20, 4008dc <__libc_csu_init+0x6c>
  4008b0:	f9000bb3 	str	x19, [x29, #16]
  4008b4:	d2800013 	mov	x19, #0x0                   	// #0
  4008b8:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  4008bc:	aa1803e2 	mov	x2, x24
  4008c0:	aa1703e1 	mov	x1, x23
  4008c4:	2a1603e0 	mov	w0, w22
  4008c8:	91000673 	add	x19, x19, #0x1
  4008cc:	d63f0060 	blr	x3
  4008d0:	eb13029f 	cmp	x20, x19
  4008d4:	54ffff21 	b.ne	4008b8 <__libc_csu_init+0x48>  // b.any
  4008d8:	f9400bb3 	ldr	x19, [x29, #16]
  4008dc:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4008e0:	a942dff6 	ldp	x22, x23, [sp, #40]
  4008e4:	f9401ff8 	ldr	x24, [sp, #56]
  4008e8:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4008ec:	d65f03c0 	ret

00000000004008f0 <__libc_csu_fini>:
  4008f0:	d65f03c0 	ret

Disassembly of section .fini:

00000000004008f4 <_fini>:
  4008f4:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4008f8:	910003fd 	mov	x29, sp
  4008fc:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400900:	d65f03c0 	ret
